package 创建者模式.工厂模式.抽象工厂模式;

public class Client {
    public static void main(String[] args) {
        ItalyDessertFactory factory=new ItalyDessertFactory();
        Coffee coffee=factory.creatCoffee();
        Dessert dessert=factory.creatDessert();

        System.out.println(coffee.getName());
        dessert.show();

        AmericanDessertFactory factory1=new AmericanDessertFactory();
        Coffee coffee1=factory1.creatCoffee();
        Dessert dessert1=factory1.creatDessert();

        System.out.println(coffee1.getName());
        dessert1.show();


    }
}
